package jy.game.components.wuxue.pojo;


import java.util.ArrayList;
import java.util.List;

import jy.game.BasePojo;
import jy.game.components.wuxue.JyTrigger;
import jy.game.tools.JyResourceManager;
import wx.xml.simpleframework.xml.Attribute;
import wx.xml.simpleframework.xml.ElementList;
import wx.xml.simpleframework.xml.Root;

@Root(name = "internal_skill")
public class JyInternalSkill extends BasePojo {
    @Attribute(name = "name") public                     String              name;
    @Attribute(name = "info") public                     String              info;
    @Attribute(name = "yin") public                      int                 yin;
    @Attribute(name = "yang") public                     int                 yang;
    @Attribute(name = "attack") public                   double              attack;
    @Attribute(name = "critical") public                 double              critical;
    @Attribute(name = "defence") public                  double              defence;
    @Attribute(name = "hard") public                     double              hard;
    @Attribute(name = "icon") public                     String              icon         = "";
    @ElementList(name = "trigger", inline = true) public List<JyTrigger>     triggers     = new ArrayList<JyTrigger>();
    @ElementList(name = "unique", inline = true) public  List<JyUniqueSkill> uniqueSkills = new ArrayList<JyUniqueSkill>();

    // (get) Token: 0x060003E4 RID: 996 RVA: 0x000041D2 File Offset: 0x000023D2
    @Override public /*override*/ String getPK() {
        {
            return this.name;
        }
    }

    @Override public /*override*/ void initBind() {
        for (JyUniqueSkill uniqueSkill : this.uniqueSkills) {
            JyResourceManager.add(JyUniqueSkill.class, uniqueSkill.getPK(), uniqueSkill);
        }
    }
}